package com.venue.hjt.venueclass.adapter

/**
 * Created by xqx on 2018/3/6.
 */
import android.content.Context
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentStatePagerAdapter
import android.support.v4.view.PagerAdapter
import android.view.View
import android.view.ViewGroup
import com.venue.hjt.venueclass.fragment.BaseFragment
import java.util.*


class KotlinPagerAdapter(var mList : ArrayList<BaseFragment>, fm: android.support.v4.app.FragmentManager?) : FragmentStatePagerAdapter(fm) {
    override fun getItem(position: Int): android.support.v4.app.Fragment {
        return mList[position]
    }

    override fun getCount(): Int {
        return mList.size
    }

}